import axios from '../../axios'

/* 
 * 数据库备份还原模块
 */

// 导入商品数据
export const commodityData = (data) => {
    return axios({
        url: '/kysj/user/import/commodityData',
        method: 'post',
        // Content-Type: 'multipart/form-data',
        data
    })
}

// 导入经济数据
export const economyData = (data) => {
    return axios({
        url: '/kysj/user/import/economyData',
        method: 'post',
        data
    })
}

// 获取导入信息
export const getUploadLogs = (page,pageSize) => {
    return axios({
        url: '/kysj/user/import/getUploadLogs?page='+page+'&pageSize='+pageSize,
        method: 'get',
    })
}

// // 查询总量
// export const count = () => {
//     return axios({
//         url: '/kysj/user/databackup/count',
//         method: 'get',
//     })
// }

// // 删除
// export const deleteDatabackup = (sqlname) => {
//     return axios({
//         url: '/kysj/user/databackup/delete?sqlname=' + sqlname,
//         method: 'delete',
//     })
// }